package com.neuedu.yyzxproject.config;

//import com.neuedu.yyzxproject.interceptor.JwtTokenInterceptor;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

//@Configuration
//public class WebConfig implements WebMvcConfigurer {
////todo  拦截器配置
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(new JwtTokenInterceptor())
//                .addPathPatterns("/**")  // 拦截所有请求
//                .excludePathPatterns(
//                        "/user/login",
//                        "/register",
//                        "/doc.html",   // 排除接口文档路径
//                        "/swagger-ui/**",   // 如果有swagger静态资源也可以排除
//                        "/v3/api-docs/**"
//                );// 放行登录、注册接口等
//    }
//}
